package objects;

public class SpeedLogReport extends SpeedLog{
	
	private Integer speedLimit;

	public SpeedLogReport() {
		super();
		speedLimit = 0;
	}
	
	public SpeedLogReport( Integer newid) {
		super(newid);
		speedLimit = 0;
	}


	public void setSpeedLimit(Integer newspeedlimit) {
		speedLimit = newspeedlimit;
	}
	
	public Integer getSpeedLimit() {
		return speedLimit;
	}

    @Override
	public void display() {
    	super.display();
    	System.out.println("SpeedLimit: " + speedLimit);
    }
}
